package com.example.ssmlab1.controller;

import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class BaseController {
    HttpServletRequest request;
    private HttpServletResponse response;
    private HttpSession session;
    private ServletContext application;


    @ModelAttribute
    public void set(HttpServletRequest request, HttpServletResponse response) {
        this.request = request;
        this.response = response;
        this.session = session;
        this.application = application;

    }
}
